#ifndef __SKELETALANIMATIONFRAME_H__
#define __SKELETALANIMATIONFRAME_H__
#pragma once

class SkeletalAnimationFrameListener : public FrameListener, public KeyListener 
{
public:
	AnimationState * m_pState;

	enum EAnimationSpeed
	{
		e_SpeedPause = 0,
		e_SpeedHalf,
		e_SpeedNormal,
		e_SpeedX2,
		e_SpeedX4,
		e_SpeedMax
	};

	EAnimationSpeed m_AnimationSpeed;

public:
    SkeletalAnimationFrameListener(AnimationState *pState, EAnimationSpeed Speed = e_SpeedNormal);

    bool frameStarted(const FrameEvent& evt);


public: 
	void keyClicked(KeyEvent* e);
	void keyPressed(KeyEvent* e);
	void keyReleased(KeyEvent* e);
};

#endif //__SKELETALANIMATIONFRAME_H__
